import {defineConfig} from "vite";
import react from "@vitejs/plugin-react";
import {resolve} from "path";
import UnoCSS from "unocss/vite";


export default defineConfig({
    plugins: [
        react(),
        UnoCSS(),
        
    ],
    

    resolve: {
        alias: [{find: "@", replacement: resolve(__dirname, "./src")}],
    },
    build: {
        rollupOptions: {
          treeshake: {
            moduleSideEffects: 'no-external' // 可以帮助更积极地进行树摇
          },
        }
      }
});
